package com.neusoft.ysu.npms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neusoft.ysu.npms.mapper.DepartmentMapper;
import com.neusoft.ysu.npms.mapper.HelpMapper;
import com.neusoft.ysu.npms.mapper.HelpmanMapper;
import com.neusoft.ysu.npms.mapper.MeasureMapper;
import com.neusoft.ysu.npms.pojo.Department;
import com.neusoft.ysu.npms.pojo.Help;
import com.neusoft.ysu.npms.pojo.Measure;
import com.neusoft.ysu.npms.pojo.Result;
import com.neusoft.ysu.npms.service.IHelpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 作者：刘金秋
 * @since 2024-06-18
 */
@Service
public class HelpServiceImpl extends ServiceImpl<HelpMapper, Help> implements IHelpService {
    @Autowired
    HelpMapper helpMapper;

    @Override
    public Result add(Help help) {
        return new Result<>(0, "", helpMapper.add(help));
    }

    @Override
    public Result deleteHelp(Help help){
        return new Result<>(0,"",helpMapper.deleteHelp(help));
    }

    @Override
    public Result updateHelp(Help help){
        return new Result<>(0,"",helpMapper.updateHelp(help));
    }

    @Override
    public Result selectAll(){
        return new Result<>(0,"",helpMapper.selectAll());
    }
    @Override
    public Result findById(Help help){
        return new Result<>(0,"",helpMapper.findById(help));
    }
}
